import 'package:cat_eye/base/base_refresh_view_model.dart';
import 'package:cat_eye/base/base_view_model.dart';
import 'package:cat_eye/bean/home_body_bean.dart';
import 'package:cat_eye/bean/hot_bean.dart';
import 'package:cat_eye/config/url_config.dart';
import 'package:flutter/material.dart';

/*
* @Package: view_model.hot_view_model
* @ClassName: hot_view_model
* @Author: szj
* @CreateDate: 8/4/21 1:26 PM
* TODO 热门ViewModel
*/
class HotViewModel extends BaseViewModel {


  List<TabList> tabList = [];

  @override
  String get httpUrl => UrlConfig.rankUrl;


  @override
  void successJsonData(json) {
    var bean = HotBean.fromJson(json);
    tabList.addAll(bean.tabInfo.tabList);
  }
}
